<template>
    <div class="home">
        <!--    <img alt="Vue logo" src="../assets/logo.png">-->
        <div class="content">欢迎进入后台管理界面...</div>
    </div>
</template>

<script>
    import Qs from 'qs'

    export default {
        name: 'Home',
        components: {},
        created() {
          debugger
            let query = Qs.parse(location.search.substring(1));
            if (query.token) {
                sessionStorage.setItem("token", query.token)
            }
            if (query.userId){
              sessionStorage.setItem("userId", query.userId)
            }
            if (query.role){
              sessionStorage.setItem("role", query.role)
            }
        }
    }
</script>

<style scoped>
    .home {
        display: flex;
    }

    .content {
        margin-left: 20px;
        font-size: 24px;
        line-height: 20px;
        margin-top: 20px;
    }
</style>
